import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';

/**
 * 投递简历
 */
@Entity('delivery')
export default class Delivery extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'user_id', comment: '用户ID' })
  userId: string;

  @Column({ name: 'nick_name', comment: '用户昵称' })
  nickName: string;

  @Column({ name: 'friend_id', comment: '招聘者ID' })
  friendId: string;

  @Column({ name: 'job_id', comment: '岗位ID' })
  jobId: number;

  @Column({ name: 'job_name', comment: '岗位名称' })
  jobName: string;

  @Column({ name: 'resume_id', comment: '简历ID' })
  resumeId: number;

  @Column({ default: 0, comment: '查阅状态 0=未读 1=系统不通知 2=已读' })
  status: number;
}
